/**
 * @author mazouri
 * @create 2023-03-03 9:58
 */
public class _04_findNumberIn2DArray {
    public boolean findNumberIn2DArray(int[][] matrix, int target) {
        for (int i = 0; i < matrix.length; i++) {
            for (int j = 0; j < matrix[0].length; j++) {
                if (target == matrix[i][j]){
                    return true;
                }
            }
        }
        return false;
    }
}
